<template>
  <XtxBread>
    <XtxBreadItem to="/">首页</XtxBreadItem>
    <XtxBreadItem to="/">{{ list.parentName }}</XtxBreadItem>
    <XtxBreadItem>{{ list.name }}</XtxBreadItem>
  </XtxBread>
</template>

<script>
import { inject } from 'vue'
export default {
  name: 'SubBread',
  // props: {
  //   list: {
  //     type: Object,
  //     default: () => ({})
  //   }
  // }
  setup() {
    const list = inject('list')
    return { list }
  }
}
</script>
